﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace UnfriendlyFire.Models
{
    [MetadataType(typeof(UnitType.MetadataType))]
    public partial class UnitType 
    {
        class MetadataType
        {
            [Required]
            [StringLength(32)]
            public string Name { get; set; }

            [Required]
            public string Description { get; set; }

            [Required]
            [StringLength(1024)]
            public string Icon { get; set; }

            [Required]
            [StringLength(1024)]
            public string Image { get; set; }

            [Required]
            [Range(0.0, Double.MaxValue)]
            public double Strength { get; set; }

            [Range(0.0, Double.MaxValue)]
            [DisplayName("Minimum Speed")]
            public double MinimumSpeed { get; set; }

            [Range(0.0, Double.MaxValue)]
            [DisplayName("Maximum Speed")]
            public double MaximumSpeed { get; set; }
        }
    }
}